package cn.bone.motan.mashan.data;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by MD-01 on 2017/3/15.
 */
public class RouteData {

    /**
     * 数据类型
     * branch:  非底层数据,显示数量.解析branchRoutes
     * leaf:    最底层数量,显示详情.解析leafRoutes
     */
    private String type;
    private List<BranchRoute> branchRoutes = new ArrayList<>();
    private List<LeafRoute> leafRoutes = new ArrayList<>();

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<BranchRoute> getBranchRoutes() {
        return branchRoutes;
    }

    public void setBranchRoutes(List<BranchRoute> branchRoutes) {
        this.branchRoutes = branchRoutes;
    }

    public List<LeafRoute> getLeafRoutes() {
        return leafRoutes;
    }

    public void setLeafRoutes(List<LeafRoute> leafRoutes) {
        this.leafRoutes = leafRoutes;
    }

    public static class BranchRoute{
        /**地区名称*/
        String name;
        /**线路数量*/
        int count;
        /**地区编号*/
        String sign;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }
    }

    public static class LeafRoute{

        /**线路名称*/
        private String routeName;
        /**访问地图url*/
        private String url;
        /**线路保护点集合*/
        private List<String> sites = new ArrayList<>();

        public String getRouteName() {
            return routeName;
        }

        public void setRouteName(String routeName) {
            this.routeName = routeName;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public List<String> getSites() {
            return sites;
        }

        public void setSites(List<String> sites) {
            this.sites = sites;
        }
    }
}
